package com.ruyuan.eshop.construction.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruyuan.eshop.construction.domain.entity.CategoryInfoDO;
import com.ruyuan.eshop.construction.domain.entity.CategoryInfoTreeDO;
import com.ruyuan.eshop.construction.domain.request.QueryCategoryListRequest;
import com.ruyuan.eshop.construction.domain.request.QueryCategoryRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *
 * @author zhonghuashishan
 */
@Mapper
public interface CategoryInfoMapper extends BaseMapper<CategoryInfoDO> {

    /**
     * 查询品类信息
     *
     * @param queryCategoryListRequest
     * @return java.util.List<com.ruyuan.eshop.construction.domain.dto.CategoryInfoDTO>
     * @author zhonghuashishan
     */
    List<CategoryInfoDO> selectListByLike(QueryCategoryListRequest queryCategoryListRequest);

    /**
     * 查询品类树
     *
     * @param queryCategoryRequest
     * @return java.util.List<com.ruyuan.eshop.construction.domain.dto.CategoryInfoTreeDTO>
     * @author zhonghuashishan
     */
    List<CategoryInfoTreeDO> selectTree(QueryCategoryRequest queryCategoryRequest);

}